import { Router } from 'express';
import { authenticate } from '@/middleware/auth';
import {
  fuelTrendChart,
  expenseTrendChart,
  incomeTrendChart,
  expensePieChart,
  mileageTrendChart,
} from '@/controllers/chartController';

const router = Router();

router.use(authenticate);

router.get('/fuel-trend', fuelTrendChart);
router.get('/expense-trend', expenseTrendChart);
router.get('/income-trend', incomeTrendChart);
router.get('/expense-pie', expensePieChart);
router.get('/mileage-trend', mileageTrendChart);

export default router;
